<template>
	<view class="calMore">
		<view class="calMoreBox" v-for="item in infoData" :key="item.title">
			<view class="title">{{ item.title }}</view>
			<view class="contentBox" v-for="sub in item.list" :key="sub.id">
				<view class="calMoreImg"><image :src="sub.imgList[0].url"></image></view>
				<view class="action">
					<view class="content">
						<view class="actionTitle">{{sub.name}}</view>
						<view>
							数量:
							<text>{{sub.supplyAmount}}吨</text>
						</view>
						<view class="time">{{sub.startTime}}</view>
					</view>
					<view class="actionBtn">
						<text>￥{{sub.openingPrice}}起</text>
						<button>立即报名</button>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name:"CalendarMore",
		props:{
			infoData:{
				type:Object
			}
		},
		data() {
			return {
				
			};
		}
	}
</script>

<style lang="scss">
.calMore {
	display: flex;
	flex-direction: column;
	margin-top: 20rpx;
	width: 680rpx;
	min-height:516rpx;
	background-color: #323232;
	border-radius: 8px;
}
.calMoreBox {	
	width: 610rpx;
	height: 160rpx;
	margin: 15px auto 20px;
}
.title {
	font-size: 16px;
	color: #fff;
	margin: 10px auto 18px;
}
.contentBox {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 48rpx;
}
.calMoreImg > image {
	width: 160rpx;
	height: 160rpx;
}
.action {
	display: flex;
}
.content {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	color: #fff;
	font-size: 16px;
}
.content > .actionTitle,
.content > .time {
	font-size: 14px;
}
.actionBtn {
	display: flex;
	flex-direction: column;
	font-size: 16px;
	color: #fff;
	padding-top: 30px;
	margin-left: 5px;
}
.actionBtn > text {
	text-align: right;
}
.actionBtn > button {
	box-sizing: border-box;
	width: 68px;
	height: 25px;
	line-height: 25px;
	color: #fff;
	font-size: 14px;
	padding-left: 5px;
	padding-right: 5px;
	background-color: #ff8f1f;
	margin-top: 5px;
	margin-left: 5px;
}
</style>
